#ifndef  __SPSCODEC__H__20171222__ 
#define  __SPSCODEC__H__20171222__ 
#include <stdio.h>  
#include <stdint.h>  
#include <string.h>  
#include <math.h>  
typedef  unsigned int UINT;
typedef  unsigned char BYTE;
typedef  unsigned long DWORD;

UINT Ue(BYTE *pBuff, UINT nLen, UINT &nStartBit);
int Se(BYTE *pBuff, UINT nLen, UINT &nStartBit);
DWORD u(UINT BitCount, BYTE * buf, UINT &nStartBit);
void de_emulation_prevention(BYTE* buf, unsigned int* buf_size);
bool h264_decode_sps(BYTE * buf, unsigned int nLen, int &width, int &height, int &fps);
#endif //__SPSCODEC__H__20171222__ 